/**
 * Copyright(c) 2010 Ceno Techonologies Co., Ltd.
 *
 * History:
 *   15-1-10 下午12:04 Created by lyyang
 */
package com.jade.bss.business.groupon;

import java.util.List;

import com.jade.framework.base.criterion.Criteria;
import com.jade.framework.base.util.PagingList;

/**
 * 嗅探记录dao
 *
 * @author <a href="mailto:lyyang@ceno.cn">lyyang</a>
 * @version 1.0 15-1-10 下午12:04
 */
public interface SnifferSettingDao
{
    void add(SnifferSetting setting);

    void update(SnifferSetting setting);

    void remove(long... ids);

    void remove(String ownerId, String ownerType);

    SnifferSetting get(long id);

    List<SnifferSetting> list(String ownerId, String ownerType);

    SnifferSetting get(String ownerId, String ownerType, String channel);

    List<SnifferSetting> list(Criteria criteria);

    PagingList<SnifferSetting> query(Criteria criteria);
}
